package com.mingdong.first.celue;

import com.mingdong.first.celue.duck.GreenHeadDuck;
import com.mingdong.first.celue.flyBehavior.FlyBehavior;
import com.mingdong.first.celue.flyBehavior.SlowFlyBehavior;
import com.mingdong.first.celue.quackBehavior.GeGeBehavior;
import com.mingdong.first.celue.quackBehavior.QuackBehavior;

public class Test {

	public static void main(String[] args) {

		GreenHeadDuck greenHeadDuck = new GreenHeadDuck();
		
		FlyBehavior greenFly = new SlowFlyBehavior();
		QuackBehavior greenQuack = new GeGeBehavior();
/*		greenHeadDuck.setFlyBehavior(greenFly);
		greenHeadDuck.setQuackBehavior(greenQuack);*/
		greenHeadDuck.display();
		greenHeadDuck.fly();
		greenHeadDuck.quack();
		
	}

}
